<?php /* Smarty version 2.6.18, created on 2009-05-22 02:39:56
         compiled from ua-admin/news_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'ua-admin/news_edit.html', 32, false),array('modifier', 'default', 'ua-admin/news_edit.html', 32, false),array('modifier', 'date_format', 'ua-admin/news_edit.html', 35, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/admin.js"></script>
</head>

<body leftmargin="10" topmargin="10">
<table width="100%" border="0" cellpadding="2" cellspacing="6"><tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide"><tr>
  <td><div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo; 资讯管理</div></td>
</tr></table>
<div style="text-align:center;color:red;"><?php echo $this->_tpl_vars['nonewstype']; ?>
</div>
      <form name="editfrm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>
" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
">
        <input type="hidden" name="oldimgname" value="<?php echo $this->_tpl_vars['n']['NewsPicture']; ?>
">
        <table width="100%"  border="0" cellpadding="8" cellspacing="1" class="tableborder">
		<tr class="header">
		  <td colspan="4">资讯</td>
		</tr>
          <tr>
            <td align="center" class="altbg1">新闻标题                            
            <td class="altbg2"><input name=news[title] type="Text" id="news[title]" value="<?php echo $this->_tpl_vars['n']['NewsTitle']; ?>
"></td>
            <td align="center" class="altbg1">关键词</td>
            <td class="altbg2"><input name=news[keywords] type="Text" id="news[source]" value="<?php echo $this->_tpl_vars['n']['NewsKeywords']; ?>
"></td>
          </tr>
          <tr>
            <td align="center" class="altbg1">新闻类别 
            <td class="altbg2"><select name="news[type_id]" id="newstype_id">
                                        <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['AllParents'],'selected' => ((is_array($_tmp=@$this->_tpl_vars['n']['NewsTypeId'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_GET['sid']) : smarty_modifier_default($_tmp, @$_GET['sid']))), $this);?>

                                      </select>                                    </td>
            <td align="center" class="altbg1">录入时间</td>
            <td class="altbg2"><input type="text" name="creattime" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['n']['NewsCreated'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())))) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
' id="date2" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date2"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
          </tr>
          <tr>            <td class="altbg1" align="center">文章来源 
            <td class="altbg2">
                <input name=news[source] type="Text" id="source" value="<?php echo $this->_tpl_vars['n']['NewsSource']; ?>
"> 
            
            </td>
            <td class="altbg1" align="center">浏览量&nbsp; 
            <td class="altbg2"><input name=news[clicked] type="Text" id="news[clicked]" Value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['n']['NewsClicked'])) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1')); ?>
" size="12"></td>
          </tr>
          <tr>            <td class="altbg1" align="center">阅读权限 
            <td class="altbg2">
			<select multiple name="require_membertype[]" id="NewsRequireMembertype">
			<option value="0">不限</option>
			<?php $_from = $this->_tpl_vars['Membertypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['membertype'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['membertype']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
        $this->_foreach['membertype']['iteration']++;
?>
			<option value="<?php echo $this->_tpl_vars['key']; ?>
"><?php echo $this->_tpl_vars['item']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
			</select>(按住Ctrl键可多选, 如果不想改动请不要选择)</td>
            <td class="altbg1" align="center">&nbsp; 
            <td class="altbg2"></td>
          </tr>
          
          
          <tr>
            <td width=15% align="center" valign="top" class="altbg1"><br>
              新闻内容 
            <td colspan="3" class="altbg2" border=1 ><?php echo $this->_tpl_vars['FCK_NEWSCONTENT']; ?>
</td>
          </tr>
          <tr>
            <td align="center" class="altbg1">图片</td>
            <td colspan="3" class="altbg2"><img id="uploadpic" src="<?php if ($this->_tpl_vars['n']['NewsPicture']): ?><?php echo $this->_tpl_vars['attachment_dir']; ?>
<?php echo $this->_tpl_vars['n']['NewsPicture']; ?>
<?php else: ?>../media/default/big.jpg<?php endif; ?>"  border="0" width="400" height="250" alt="看到这个,表明你的图片出错了!">&nbsp;</td>
          </tr>
          
          <tr>
            <td align="center" class="altbg1">上传图片</td>
            <td colspan="3" class="altbg2"><input type="file" name="pic" id="uploadfile" onChange="preview()" size=25>              
            （图片要求：文件小于200K，JPG格式或GIF格式均可）</td>
          </tr>
          
          <tr>
            <td colspan="4" align="center">
			<table border="0" cellpadding="5" cellspacing="0" class="button">
                <tr>
                  <td><input  name=save type=submit id="save" value=" 保存 " class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                  <td><input  name=reset type=reset id="reset" value=" 取消" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"></td>
                </tr>
          </table>          </tr>
        </table>
      </form></td></tr></table>
<br /><br />
</body>
</html>
